import ajax from '@/plugins/services/ajax'

export function uploadAvatar(data) {
    return ajax({
        url: '/common/upload/one',
        method: 'UPLOAD',
        data,
    })
}

// 获取用户信息
export function getUserInfo() {
    return ajax({
        url: '/user/info',
        method: 'GET',
    })
}
